SRCS	:= $(wildcard *.cpp)

CC		= g++
INCPATH	= ../include
#CCFLAG	= -I $(INCPATH) -c -g -O3 -static
CCFLAG	= -I $(INCPATH) -I /usr/include/nvidia -c -g -static

UTILS_OBJS = Record.o Entry.o

ENGINE_OBJS = PTXExecution.o PTXTranslator.o

LIBGCROSSBIT_OBJS = $(UTILS_OBJS) $(ENGINE_OBJS)

all: $(LIBGCROSSBIT_OBJS)
	ar -r libgcrossbit.a *.o
	echo "done!"

$(LIBGCROSSBIT_OBJS):%.o:%.cpp
	$(CC) $(CCFLAG) $? -o $@

clean:
	rm -rf *.o
	rm -f *.a
